package ve.org.src.util;

import java.sql.Date;
import java.sql.Timestamp;
import java.util.Calendar;

public class DateUtils {

    public static boolean isAfterToday(Timestamp fecha)
    {
        return fecha.after(new Date(System.currentTimeMillis()));
    }

    public static boolean isBeforeToday(Timestamp fecha)
    {
        return fecha.before(new Date(System.currentTimeMillis()));
    }

    public static Timestamp rollDays(int dias)
    {
        Calendar calendario = Calendar.getInstance();
        calendario.add(Calendar.DATE, dias);
        return new Timestamp(calendario.getTime().getTime());
    }

}
